Asbjørn Sloth Tønnesen [Wed, 9 Feb 2011 13:48:32 +0000 (13:48 +0000)]
Makefile: get version from git
Pull the version number from git tags, rather than a text file in git.
Signed-off-by: Asbjørn Sloth Tønnesen <ast@mugami.com>
Asbjørn Sloth Tønnesen [Wed, 9 Feb 2011 13:40:50 +0000 (13:40 +0000)]
build: remove reference to dist/jquery.js from build/
This patch makes it easier to use jQuery's build system
for other projects, without having to maintain a patch.
Signed-off-by: Asbjørn Sloth Tønnesen <ast@mugami.com>
Colin Snover [Tue, 8 Feb 2011 18:13:27 +0000 (12:13 -0600)]
Revert portions of
7acb141ed7f2dedd950bb65acf878098640d081e that attempt to use a function to hide jQuery metadata from JSON.stringify since this does not work reliably cross-browser (fails in Fx3.5, O11, Saf4).
Anton M [Tue, 8 Feb 2011 16:15:55 +0000 (17:15 +0100)]
Make sure that mousing over Chrome "internal div" doesn't trigger a mouseleave. Fixes #8209.
Follow up to https://github.com/jquery/jquery/commit/
4a828c93d40eb67b2041b08bbed0f1973442bd03
which was stupid and got reversed.
Anton M [Tue, 8 Feb 2011 16:08:25 +0000 (17:08 +0100)]
Revert "Make sure that mousing over Chrome "internal div" elements results in no trigger of a mouseleave."
This reverts commit
4a828c93d40eb67b2041b08bbed0f1973442bd03.
Anton M [Tue, 8 Feb 2011 15:57:06 +0000 (16:57 +0100)]
Make sure that mousing over Chrome "internal div" elements results in no trigger of a mouseleave. Fixes #8209.
Colin Snover [Mon, 7 Feb 2011 16:56:48 +0000 (10:56 -0600)]
Update jQuery.support.noCloneEvent test to function properly in IE9. Fixes #8052. 1.5-stable
Colin Snover [Mon, 7 Feb 2011 16:52:33 +0000 (10:52 -0600)]
Merge branch 'master' of github.com:jquery/jquery into jquery-master
Colin Snover [Mon, 7 Feb 2011 16:48:38 +0000 (10:48 -0600)]
Update $.data to use a function instead of an object when attaching to JS objects in order to hide attached metadata from JSON.stringify. Remove event.js code that was doing this before specifically for events, which is now redundant. Fixes #8108. 1.5-stable
jaubourg [Mon, 7 Feb 2011 16:09:47 +0000 (17:09 +0100)]
Adds jQuery collection to objects that will be used as global events context if provided in the ajax options.
jaubourg [Mon, 7 Feb 2011 15:35:32 +0000 (16:35 +0100)]
Fixes a bug that prevented headers from being set in an ajaxSend callback. Unit test modified.
jaubourg [Mon, 7 Feb 2011 05:11:52 +0000 (06:11 +0100)]
Makes sure xhrs are actually aborted on unload in IE. Simplifies active xhrs caching in the process.
jaubourg [Sat, 5 Feb 2011 02:08:35 +0000 (03:08 +0100)]
Fixes #8177. XHR transport now considers 304 Not Modified responses as 200 OK if no conditional request header was provided (as per the XMLHttpRequest specification).
jaubourg [Sat, 5 Feb 2011 02:06:21 +0000 (03:06 +0100)]
Fixes a typo in the title of the load() unit test.
Anton M [Fri, 4 Feb 2011 23:20:23 +0000 (00:20 +0100)]
Remove an invalid ajax test and some code that is no longer used by any test.
jaubourg [Fri, 4 Feb 2011 21:29:10 +0000 (22:29 +0100)]
Reformats logic for early abort in beforeSend to limit block imbrication.
jaubourg [Fri, 4 Feb 2011 21:19:23 +0000 (22:19 +0100)]
Fixes abort in prefilter. No global event will be fired in that case even if the global option is set to true. Unit test added.
jaubourg [Fri, 4 Feb 2011 20:50:18 +0000 (21:50 +0100)]
Disables dataType redirection while selecting transport.
jaubourg [Thu, 3 Feb 2011 17:23:02 +0000 (18:23 +0100)]
Adds widget as the list of local protocols.
jaubourg [Thu, 3 Feb 2011 17:22:37 +0000 (18:22 +0100)]
Don't use a local copy of jQuery.ajaxSettings.isLocal anymore but use the current value so that it is possible to set isLocal to true for protocols unknown to jQuery.
jaubourg [Thu, 3 Feb 2011 16:17:56 +0000 (17:17 +0100)]
Adds support for more complex protocol by having the url regexp closer to rfc1738.
jaubourg [Thu, 3 Feb 2011 05:12:47 +0000 (06:12 +0100)]
Stores jQuery.ajaxSettings.isLocal locally at load time so that any change to it won't affect the transport. Fixes the url parsing regexp to deal with empty domains. Adds informative text into test/localfile.html and handles Opera's failure. Revises the way xhr are created by doing all tests at load time and normalizes all the xhr creation functions so that none of them may throw an exception.
jaubourg [Thu, 3 Feb 2011 04:19:15 +0000 (05:19 +0100)]
Fixes #7653. Changes regexp to detect local protocol so that it will accept any protocol finishing by -extension.
jaubourg [Thu, 3 Feb 2011 02:02:11 +0000 (03:02 +0100)]
Fixes #8146. Custom fields in xhrFields are now set after the XMLHttpRequest object has been opened.
jaubourg [Thu, 3 Feb 2011 01:53:10 +0000 (02:53 +0100)]
Fixes #8152 by applying the same special cases for protocol "chrome-extension:" as were for "file:" (needs tests). Re-organizes and fixes the handling of special cases for HTTP status code in the xhr transport. Also re-organizes the handling of document.location in ajax.js.
jaubourg [Wed, 2 Feb 2011 20:16:26 +0000 (21:16 +0100)]
Fixes #8146 by introducing the xhrFields option with is a map of fieldName/fieldValue to set on the native xhr. Can be used to set withCredentials to true for cross-domain requests if needed.
jaubourg [Wed, 2 Feb 2011 19:52:26 +0000 (20:52 +0100)]
Fixes #8138. Access to document.location is made only once at load time and if it fails (throwing an exception in IE when document.domain is already set), we use the href of an A element instead.
jaubourg [Wed, 2 Feb 2011 12:33:02 +0000 (13:33 +0100)]
Fixes #8135. Makes sure any exception thrown by Firefox when trying to access an XMLHttpRequest property when a network error occured is caught and notified as an error. Added test/networkerror.html to test the behavior.
Mathias Bynens [Mon, 24 Jan 2011 10:18:57 +0000 (11:18 +0100)]
Fixes #8098. Use the fast document.head when available. Don't set unneeded "script.type = text/javascript".
Anton Kovalyov [Tue, 1 Feb 2011 23:32:29 +0000 (00:32 +0100)]
Fixes #7945. Make jQuery.param() serialize plain objects with a property named jquery correctly.
rwldrn [Tue, 1 Feb 2011 22:54:02 +0000 (17:54 -0500)]
Fixes #8129. Fix cloning multiple selected options in IE8.
jaubourg [Tue, 1 Feb 2011 16:22:01 +0000 (17:22 +0100)]
Fixes #8125. Status is set to 200 for requests with status 0 when location.protocol if "file:". Added test/localfile.html to control it works.
jaubourg [Tue, 1 Feb 2011 15:00:30 +0000 (16:00 +0100)]
Fixes #8115. Renames all references to jXHR with jqXHR in the code (like was done in the doc).
jeresig [Tue, 1 Feb 2011 13:57:18 +0000 (08:57 -0500)]
The default for .clone() is to not clone any events. Fixes #8123.
jaubourg [Tue, 1 Feb 2011 08:30:52 +0000 (09:30 +0100)]
Places multiple signature test after all primary callbacks tests.
Dan Heberden [Tue, 1 Feb 2011 08:18:16 +0000 (00:18 -0800)]
Improve $.ajax method signature unit test and placement
Dan Heberden [Tue, 1 Feb 2011 03:37:28 +0000 (19:37 -0800)]
Bug 8107; Fix argument handling for $.ajax for multiple method signatues and add test case
jaubourg [Mon, 31 Jan 2011 18:59:53 +0000 (19:59 +0100)]
Fixes #8095. Properly handles the case where browser cache needs to be bypassed while server-side logic still delivers proper 304 responses. Unit test added.
jaubourg [Mon, 31 Jan 2011 18:14:06 +0000 (19:14 +0100)]
Script dataType now supports ecmascript mimetypes.
jaubourg [Mon, 31 Jan 2011 17:53:44 +0000 (18:53 +0100)]
Makes sure jsonp callback is not left in the global namespace in case of an early abort (beforeSend). Unit test added.
jaubourg [Mon, 31 Jan 2011 16:39:54 +0000 (17:39 +0100)]
Makes sure all converters keys are lowercased before any conversion is taking place: dataTypes' names are now truly case insensitive. Unit test edited.
jaubourg [Mon, 31 Jan 2011 16:23:36 +0000 (17:23 +0100)]
Makes sure options.context is used as the context for global ajax events only if it's a DOM node.
Anton M [Mon, 31 Jan 2011 14:58:27 +0000 (15:58 +0100)]
Fixes #7568. Follow-up fix for #5862. Objects with a length property weren't serialized properly by jQuery.param.
jaubourg [Mon, 31 Jan 2011 13:36:59 +0000 (14:36 +0100)]
Adds an invert method to promises that returns a "inverted" promise that is resolved when the underlying deferred is rejected and rejected when the underlying deferred is resolved.
jeresig [Mon, 31 Jan 2011 13:31:36 +0000 (08:31 -0500)]
Updating the source version to 1.5.1pre.
jeresig [Mon, 31 Jan 2011 13:31:29 +0000 (08:31 -0500)]
Tagging the 1.5 release.
jeresig [Mon, 31 Jan 2011 13:21:42 +0000 (08:21 -0500)]
Rename jQuery.subclass() to jQuery.sub().
jaubourg [Mon, 31 Jan 2011 10:14:38 +0000 (11:14 +0100)]
Removed errorThrown test for 404 responses seeing as Safari 3.x XHR sets the statusText as "OK" rather than "Not Found".
jaubourg [Mon, 31 Jan 2011 09:13:54 +0000 (10:13 +0100)]
Ensures dataTypeExpressions are lowercased for prefilters and transports registrations.
jaubourg [Sat, 29 Jan 2011 02:08:18 +0000 (03:08 +0100)]
Simplifies the unit test for #8082.
jaubourg [Sat, 29 Jan 2011 00:39:22 +0000 (01:39 +0100)]
Fixes #8082. Text to script converter now returns text. Unit test added.
jaubourg [Sat, 29 Jan 2011 00:25:27 +0000 (01:25 +0100)]
Fixes potential collisions between jsonp requests from different jQuery instances by prefixing the jsonp callback name with the jQuery expando rather than with "jsonp".
Colin Snover [Fri, 28 Jan 2011 16:55:39 +0000 (10:55 -0600)]
Use the original element/fragment as the last item to be appended to the document instead of the first in order to prevent missing elements when appending to multiple elements. Fixes #8070.
jaubourg [Fri, 28 Jan 2011 16:08:46 +0000 (17:08 +0100)]
Compatibility fixes in ajax: exceptions are no longer promoted to strings before being given to callbacks. Updated misleading comment in conversion code.
Anton M [Fri, 28 Jan 2011 00:50:39 +0000 (01:50 +0100)]
Pull over tests from Sizzle. Fixes #3729. Fixes #6428.
Digitalxero [Thu, 27 Jan 2011 18:35:06 +0000 (13:35 -0500)]
Make sure subclass is a proper subclass not just subclassing the fn methods. Fixes #7979.
jaubourg [Wed, 26 Jan 2011 23:59:11 +0000 (00:59 +0100)]
Merge branch 'master' of github.com:jquery/jquery
jaubourg [Wed, 26 Jan 2011 23:58:31 +0000 (00:58 +0100)]
Actually does what https://github.com/jquery/jquery/commit/
bab8079593913dbc689404aa4e83c46b9b4c9355 promised: passes the jXHR as the third argument of prefilters and transport factories. Comitted for completness even if if backs this out in the end and only land in 1.5.1.
gnarf [Wed, 26 Jan 2011 22:12:23 +0000 (16:12 -0600)]
Remove unneeded and confusing variable definition for better readability.
Anton M [Wed, 26 Jan 2011 21:50:15 +0000 (22:50 +0100)]
Fix Makefile to use plain sed agin. Remove unicode trickery. Thanks to danheberden and gnarf for figuring out why it previously faild on Mac OS X.
jeresig [Wed, 26 Jan 2011 21:36:51 +0000 (16:36 -0500)]
Merge branch 'master' of github.com:jquery/jquery
jeresig [Wed, 26 Jan 2011 21:36:33 +0000 (16:36 -0500)]
Make sure that init is run before jquery is built (avoiding weird warnings when running 'make jquery' or 'make min'). Additionally only attempt to run JSLint or the minifier if NodeJS is installed (avoiding a weird warning when you first run 'make' or 'make all').
jaubourg [Wed, 26 Jan 2011 16:37:08 +0000 (17:37 +0100)]
Passes jXHR object as third argument of prefilters and transport factories.
jaubourg [Wed, 26 Jan 2011 00:45:00 +0000 (01:45 +0100)]
Fixes #5866. Issue number in previous commit was wrong both in comments and commit message. See https://github.com/jquery/jquery/commit/
0e5b341cc0f3f9bf0f6659e09704f2267cfdfdba for previous commit.
jaubourg [Wed, 26 Jan 2011 00:36:05 +0000 (01:36 +0100)]
Fixes #5856. Adds document protocol at the beginning of URLs without protocol (thanks go to skrings for the initial pull request). Simplifies cross-domain detection regexp and logic as a consequence. Also took the opportunity to remove an unused variable. Unit test added.
jaubourg [Tue, 25 Jan 2011 23:55:39 +0000 (00:55 +0100)]
Fixes #8054 by reverting feature enhancement 5812 (4920). Regexps no longer searches for %3F in url or data to find jsonp callback placeholders.
jaubourg [Tue, 25 Jan 2011 15:08:19 +0000 (16:08 +0100)]
Reworks how values of parameters passed to error callbacks are determined. Fixes #8050.
Rick Waldron [Tue, 25 Jan 2011 02:52:17 +0000 (03:52 +0100)]
#8044 Removes unnec. rnonword var
jeresig [Mon, 24 Jan 2011 22:14:11 +0000 (17:14 -0500)]
Updating the source version to 1.5pre.
jeresig [Mon, 24 Jan 2011 22:14:04 +0000 (17:14 -0500)]
Tagging the 1.5rc1 release.
jeresig [Mon, 24 Jan 2011 22:01:31 +0000 (17:01 -0500)]
Bring back in #main prefix on adjacent selectors.
jeresig [Mon, 24 Jan 2011 21:58:56 +0000 (16:58 -0500)]
Backing out disconnected + and ~ tests as they're not something that we actively support.
jeresig [Mon, 24 Jan 2011 21:45:29 +0000 (16:45 -0500)]
Updating the year in the header.
jeresig [Mon, 24 Jan 2011 19:14:55 +0000 (14:14 -0500)]
Revert "Fix Makefile to use plain sed. Remove unicode trickery"
This reverts commit
6d358c0cdd4f84884c3d776bad0f48a93908b29b.
Anton M [Mon, 24 Jan 2011 19:01:25 +0000 (20:01 +0100)]
Fix Makefile to use plain sed. Remove unicode trickery
jaubourg [Mon, 24 Jan 2011 03:22:46 +0000 (04:22 +0100)]
Makes prefilters and transport inspection more robust and uses better variable names for readability.
jaubourg [Sun, 23 Jan 2011 21:03:24 +0000 (22:03 +0100)]
Revised internal implementation of ajaxPrefilter() and ajaxTransport(). Everything is shorter and more efficient now. Also fixes a couple spacing issues that remained.
jaubourg [Sun, 23 Jan 2011 19:46:09 +0000 (20:46 +0100)]
More code style fixes.
jaubourg [Sun, 23 Jan 2011 04:51:41 +0000 (05:51 +0100)]
Apply JQuery Core Style Guidelines to ajax.js and ajax/*.js,
jaubourg [Sun, 23 Jan 2011 04:01:36 +0000 (05:01 +0100)]
Fixes some coding style issues in core.js. In jQuery.fn.ready(), simplifies the whole code (for better backward compatibility) and removes redefinition of the function itself (in order not to clash with proxying). Also, in jQuery.when(), removes unnecessary closure and early rejection test and makes use of then instead of done/fail (better interoperability).
jaubourg [Sat, 22 Jan 2011 03:45:20 +0000 (04:45 +0100)]
Re-organizes ajax.js: prefilters and transports are no longer stored in ajaxSettings (their structure is not handled correctly by extend() and was causing some overhead when constructing the final options map in ajax()); base function for ajaxPrefilter and ajaxTransport has been renamed and split in two (one for inspection, one for addition); response/dataType determination and data conversion logics have been externalized from the ajax() internal callback; data conversion no longer sets responseXXX fields; some minor re-formatting and simplifications.
Anton M [Sat, 22 Jan 2011 00:12:18 +0000 (01:12 +0100)]
Fix selector scope on some tests, so they don't fail on testswarm.
rwldrn [Fri, 21 Jan 2011 23:41:42 +0000 (00:41 +0100)]
Merge branch '8017lint' of https://github.com/rwldrn/jquery into 8017lint
jeresig [Fri, 21 Jan 2011 16:22:55 +0000 (11:22 -0500)]
Merge branch 'fix-7398-frameset-docs' of https://github.com/dmethvin/jquery into dmethvin-fix-7398-frameset-docs
jeresig [Fri, 21 Jan 2011 16:20:05 +0000 (11:20 -0500)]
Merge branch '8013p' of https://github.com/rwldrn/jquery into rwldrn-8013p
rwldrn [Fri, 21 Jan 2011 16:08:15 +0000 (11:08 -0500)]
Basic unit tests; This patch relies on the 51 existing clone() tests
Dave Methvin [Fri, 21 Jan 2011 14:51:30 +0000 (09:51 -0500)]
Don't do body-related feature tests on frameset docs that have no body. Fixes #7398.
jeresig [Fri, 21 Jan 2011 14:24:09 +0000 (09:24 -0500)]
Revert "Make sure that focusin/focusout bubbles in non-IE browsers." This was causing problems with the focusin event, see: #7340.
This reverts commit
88068f82c199847d3679b130664dd91cc2e89f00.
Conflicts:
src/event.js
test/unit/event.js
jaubourg [Fri, 21 Jan 2011 02:58:28 +0000 (03:58 +0100)]
Replaces "text in-between" technique with a full-fledged one-level transitive search for converters (unit tests added). Also cleans up auto dataType determination and adds converter checks in order to guess the best dataType possible.
rwldrn [Thu, 20 Jan 2011 20:25:04 +0000 (15:25 -0500)]
Cleaned up; fixes per review
John Resig [Thu, 20 Jan 2011 19:51:30 +0000 (14:51 -0500)]
Merge branch 'fix-7853-add-context' of https://github.com/dmethvin/jquery into dmethvin-fix-7853-add-context
John Resig [Thu, 20 Jan 2011 19:39:57 +0000 (14:39 -0500)]
Merge branch 'master' of https://github.com/scottjehl/jquery into scottjehl-master
John Resig [Thu, 20 Jan 2011 19:39:28 +0000 (14:39 -0500)]
Merge branch 'make_fix' of https://github.com/danheberden/jquery into danheberden-make_fix
rwldrn [Thu, 20 Jan 2011 19:25:56 +0000 (14:25 -0500)]
cloneCopyEvent; jQuery.clone() review
jaubourg [Thu, 20 Jan 2011 18:40:51 +0000 (19:40 +0100)]
Moves determineResponse logic into main ajax callback. Puts responseXXX fields definitions into ajaxSettings.
jaubourg [Thu, 20 Jan 2011 17:50:47 +0000 (18:50 +0100)]
Removes misleading comment.
jeresig [Thu, 20 Jan 2011 16:58:52 +0000 (11:58 -0500)]
Merge branch 'master' of github.com:jquery/jquery
jeresig [Thu, 20 Jan 2011 16:58:44 +0000 (11:58 -0500)]
Bring jQuery('#id') and jQuery('body') logic back into core (while leaving it in Sizzle at the same time). Was causing too much of a performance hit to leave it all to Sizzle.
jaubourg [Thu, 20 Jan 2011 16:52:10 +0000 (17:52 +0100)]
Merge branch 'master' of github.com:jquery/jquery
jaubourg [Thu, 20 Jan 2011 16:51:57 +0000 (17:51 +0100)]
Renames Deferred's fire and fireReject methods as resolveWith and rejectWith respectively.